<?php
/**
 * User: 五哥派
 * Date: 2024/7/1
 * Tel(同WX): 17335592719
 */
namespace app\api\controller\v1;

use app\api\controller\ApiBase;
use app\api\model\page\Notice as NoticeModel;

class Notice extends ApiBase {

    protected $model;

    public function __construct(NoticeModel $model){

        parent::__construct();
        $this->model = $model;

    }

    public function getList(){
        $list = $this->model->queryData(['status' => 1]);
        if (empty($list)) {
            return error('查询失败');
        }
        return success('查询成功', ['list' => $list]);
    }


}